-- cmd_fetch_dungeon
-- Create by panyl
-- 获取某一层地牢数据

function Operation.cmd_fetch_dungeon()
    -- 当前地牢
    local dungeonId = DungeonM.getDungeonId();
    
    -- 当前层
    local layer = DungeonM.currentLayer();
    
    if  not dungeonId or dungeonId <= 0 or
        not layer or layer <= 0 then
        return;
    end

    -- 等待应答id（一个唯一的id）
    local authId = getUniqueNumber();

    local v = { ["auth_id"] = authId, ["layer"] = layer, ["dungeon_id"] = dungeonId, };

    -- 直接发出去
    Communicate.send("CMD_FETCH_DUNGEON", v);
end